package com.zuxia.iDao;

import java.util.List;
import java.util.Map;

import com.zuxia.po.Admininfo;

public interface AdmininfoDAOI {

	public abstract void save(Admininfo transientInstance);

	public abstract void delete(Admininfo persistentInstance);

	public abstract Admininfo findById(java.lang.Integer id);
	/**
	 * 查询用户，返回map用于存为session
	 * @param phone
	 * @param pwd
	 * @return
	 */
	public abstract Map<String, Object> selUserByPhoneAndPwd(String phone, String pwd);

	public abstract List findByExample(Admininfo instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByAiname(Object ainame);

	public abstract List findByAisex(Object aisex);

	public abstract List findByAipwd(Object aipwd);

	public abstract List findByAiphone(Object aiphone);

	public abstract List findByAiidCard(Object aiidCard);

	public abstract List findByAiaddress(Object aiaddress);

	public abstract List findAll();

	public abstract Admininfo merge(Admininfo detachedInstance);

	public abstract void attachDirty(Admininfo instance);

	public abstract void attachClean(Admininfo instance);
	
	public abstract Boolean userShowPwd(String name, String pwd);
	public abstract Boolean userUpdatePwd(String name,String pwd,String xpwd);
	/**
	 * 查询个管理员的所有信息
	 * @param id
	 * @return
	 */
	public abstract List userSelect(int id);
}